import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/preventive_rectification_create_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/preventive_rectification_create_entity.g.dart';

@JsonSerializable()
class PreventiveRectificationCreateEntity {

	PreventiveRectificationCreateEntity();

	factory PreventiveRectificationCreateEntity.fromJson(Map<String, dynamic> json) => $PreventiveRectificationCreateEntityFromJson(json);
	late String preventiveName = '';
	late int companyId = 0;
	late int rectificationPersonId = 0;
	late String rectificationPersonIdName = '';
	late int findTime = 0;
	late int rectificationDeadline =0;
	late String source = '';
	late String problemDesc = '';
	late String rectificationRequire = '';
	late String fileUrl = '';
	late String companyName = '';
	late bool isHead = false;
	/// 责任部门
	String? deptNames = '';
	String? deptIds = '';
	/// 责任人
	String? responsibleUserNames = '';
	String? responsibleUsers = '';
	/// 整改部门id集合
	String? rectificationDeptIds = '';
	String? rectificationDeptNames = '';
	/// 整改用户id集合
	String? rectificationUserIds = '';
	String? rectificationUserNames = '';
	Map<String, dynamic> toJson() => $PreventiveRectificationCreateEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}